package com.huo.linked;

public class Node<E> {
    private Node<E> next;
    private Node<E> pre;
    private E e;

    public Node() {
    }

    public Node(Node<E> next, Node<E> pre, E e) {
        this.next = next;
        this.pre = pre;
        this.e = e;
    }

    public Node<E> getNext() {
        return next;
    }

    public void setNext(Node<E> next) {
        this.next = next;
    }

    public Node<E> getPre() {
        return pre;
    }

    public void setPre(Node<E> pre) {
        this.pre = pre;
    }

    public E getE() {
        return e;
    }

    public void setE(E e) {
        this.e = e;
    }


}
